﻿@{
    ViewBag.Title = "添加用户";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
}

	<form id="editForm" name="editForm" method="post" action="/Admin/User/DoAdd">
	<div id="panelBar">
		<ul class="toolBar">
			<li><input class="submit" type="submit" value="保存" /></li>
			<li><a class="back" href="javascript:void(0)"><span>返回</span></a></li>
		</ul>
	</div>
	<div id="edit">
		<ul>
            <li> 
				<span class="label">用户名：</span>
                <span class="required">
                    <input id="username" name="username" type="text" value="" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">密码：</span>
                <span class="required">
                    <input id="password" name="password" type="password" value="" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">用户角色：</span>
                <select name="role">
                    @foreach (var role in (List<tb_role>)ViewData["Roles"])
                    {
                        <option value="@role.RoleCode">@role.RoleName</option>
                    }
                </select>
		    </li>
        </ul>
	</div>
	</form>
